/* 导入基础样式 */
@import url('index.css');

/* 反馈页面特定样式 */
.main-content {
    padding: 20px;
    margin-left: 250px;
    min-height: 100vh;
    background: #f5f7fa;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.feedback-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-form, .feedback-history {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feedback-form h2, .feedback-history h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 反馈历史样式 */
.history-list {
    max-height: 600px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state p {
    font-size: 16px;
}

.feedback-item {
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.feedback-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feedback-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
}

.feedback-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.feedback-type.bug {
    background: #ffeaea;
    color: #e53e3e;
}

.feedback-type.feature {
    background: #e6f7ff;
    color: #1890ff;
}

.feedback-type.improvement {
    background: #f6ffed;
    color: #52c41a;
}

.feedback-type.other {
    background: #f0f0f0;
    color: #666;
}

.feedback-content {
    margin-bottom: 15px;
}

.feedback-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.feedback-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.feedback-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.feedback-status.responded {
    background: #f6ffed;
    color: #52c41a;
}

.admin-response {
    margin-top: 15px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

.admin-response h4 {
    margin: 0 0 10px 0;
    color: #1890ff;
    font-size: 14px;
    font-weight: 600;
}

.admin-response p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.notification.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.notification.info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #1890ff;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feedback-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .header {
        padding: 20px 0;
    }

    .header h1 {
        font-size: 2em;
    }

    .feedback-form, .feedback-history {
        padding: 20px;
    }
}

/* 导航栏反馈图标样式 */
.nav .content .feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.nav .content .feedback:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav .content .feedback .feedback-icon {
    width: 20px;
    height: 20px;
}

.nav .content .feedback a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}